cmake_minimum_required(VERSION 3.1)
project(Vsort)

set(CMAKE_CXX_STANDARD 14)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -pthread -D_FILE_OFFSET_BITS=64")

include_directories(.)

# third_party dependencies
add_subdirectory(thirdparty/googletest)
add_subdirectory(thirdparty/gflags)

add_library(v_sort
        util.cpp
        v_sort_array.cpp)

add_library(filesort
        filesort/file_sort.cpp
        filesort/sort_file.cpp
        filesort/serializer.cpp)

add_subdirectory(tests)
